﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;
using GameSchool.Models;
using GameSchool.Models.Interfaces;


namespace GameSchoolTests
{
    class MockHandInRepository : IHandInRepository
    {
        List<HandIn> m_handInItems = new List<HandIn>();

        public MockHandInRepository(int count)
        {
            for (int i = 0; i < count; i++)
            {
                m_handInItems.Add(new HandIn { ID = i + 1, Title = "Fyrirlestur " + (i + 1), Descr = "Lýsing", Filepath="none", DatePub = DateTime.Now.AddDays(i), MaxPoints = (i + 1), MaxBonusPoints = (i + 1) });
            } 
        }

        public IQueryable<HandIn> GetHandIn()
        {
            return m_handInItems.AsQueryable();
        }

        public void AddHandIn(HandIn h)
        {
            throw new NotImplementedException();
        }

        public HandIn GetHandInByID(int? hID)
        {
            throw new NotImplementedException();
        }

        public void DeleteHandIn(int? hID)
        {
            throw new NotImplementedException();
        }

        public void Save()
        {
            throw new NotImplementedException();
        }
    }
}
